package lesson11;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author tongchen
 * @create 2023-02-07 20:26
 */
public class RentTrantLockTest {
    public static void main(String[] args) {
        ReentrantLock reentrantLock = new ReentrantLock();
        try {
            reentrantLock.lock();
        }catch (Exception exception){
            exception.printStackTrace();
        }
        finally {
            reentrantLock.unlock();
        }
    }
}
